The BaseStorage<(Of <(<'T, TMappingCollection>)>)> is the base generic component for all storages in C1Schedule object model. Represents a storage of objects derived from BasePersistableObject. This component implements methods of operations over the collections of objects. It allows the collection to be populated programmatically or automatically by retrieving data from the data source which is specified by the DataSource and DataMember properties. It allows mapping of data source fields to the object properties.

Namespace:  C1.C1Schedule
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
[ComplexBindingPropertiesAttribute("DataSource", "DataMember")]
public class BaseStorage<T, TMappingCollection> : C1BindingSource, 
	ISite, IServiceProvider
where T : new(), BasePersistableObject
where TMappingCollection : new(), MappingCollectionBase<T>
Visual Basic
<ComplexBindingPropertiesAttribute("DataSource", "DataMember")> _
Public Class BaseStorage(Of T As {New, BasePersistableObject}, TMappingCollection As {New, MappingCollectionBase(Of T)}) _
	Inherits C1BindingSource _
	Implements ISite, IServiceProvider

Type Parameters

T
The type of the objects which will be stored in the storage. It should be derived from the BasePersistableObject class and have the default parameter-less constructor.
TMappingCollection
The type of the collection which will be used for mapping. It should be derived from the MappingCollectionBase<(Of <(<'T>)>)> class and have the default parameter-less constructor.

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    System.ComponentModel..::..Component
      C1.C1Schedule..::..C1BindingSource
        C1.C1Schedule..::..BaseStorage<(Of <(<'T, TMappingCollection>)>)>
          C1.C1Schedule..::..AppointmentStorage
          C1.C1Schedule..::..CategoryStorage
          C1.C1Schedule..::..ContactStorage
          C1.C1Schedule..::..LabelStorage
          C1.C1Schedule..::..ResourceStorage
          C1.C1Schedule..::..StatusStorage

See Also